home *** CD-ROM | disk | FTP | other *** search
- package Code.WINDOWS
- {
- import Code.FIELD.helpers.TShapeType;
- import Code.LIB._be548;
- import Code.LIB._cg33;
- import Code.LIB._ct751;
- import Code.LIB._gt710;
- import Code.LIB._my111;
- import Code.LIB._oo505;
- import Code.LIB._tk11;
- import Code.LIB._vx23;
- import Code.OPTIONS.LEVELS;
- import Code.OPTIONS._gs337;
- import Code._fi197;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.events.MouseEvent;
-
- public class _tc365 extends _gt710
- {
- public static const stNone:int = 0;
-
- public static const stMove:int = 1;
-
- public var iFrameS:_be548;
-
- public var iFrame:_oo505;
-
- private var iState:int;
-
- private var iTopY:Number = 0;
-
- private var iMode:TShapeType;
-
- private var iBottomY:Number = 50;
-
- private var iButC:_ct751;
-
- private var iButR:_ct751;
-
- public function _tc365(param1:Boolean = false)
- {
- var _loc2_:String = null;
- var _loc3_:String = null;
- var _loc4_:Array = null;
- var _loc5_:_oo505 = null;
- iTopY = 0;
- iBottomY = 50;
- if(_vx23._xp514)
- {
- _loc2_ = _gs337.iLanguage.strFinished;
- }
- else
- {
- _loc2_ = _gs337.iLanguage.strLevel + " " + int(_cg33._ss555[1].prRoundzLevel + 1) + "/" + LEVELS.RoundzLevels.length;
- }
- if(_vx23._bu14)
- {
- _loc3_ = _gs337.iLanguage.strFinished;
- }
- else
- {
- _loc3_ = _gs337.iLanguage.strLevel + " " + int(_cg33._ss555[1].prBlockzLevel + 1) + "/" + LEVELS.BlockzLevels.length;
- }
- _loc4_ = [[_fi197._ww533,_gs337.cGellGreen,350,120,false,30,40,null,true],[_fi197._ww533,_gs337.cWhite,330,50,true,40,50,"iFrame",true],[_fi197._cx181,param1 ? _gs337.iLanguage.strChangeMode : _gs337.iLanguage.strSelectMode,_gs337.TColors,30,_my111.BigText,30,0,null,true],[_fi197._cx181,_gs337.iLanguage.strRoundz + " (" + _loc2_ + ")",_gs337.TColors,35,_my111.BigText,170,55,null,true],[_fi197._cx181,_gs337.iLanguage.strSquarez + " (" + _loc3_ + ")",_gs337.TColors,35,_my111.BigText,170,105,null,true]];
- _loc5_ = _tk11._ln87(new _gs337.TGSelectMode() as Sprite,0.85);
- _loc5_._xe768(45,50);
- addChild(_loc5_);
- super(_loc4_);
- iButC = new _ct751(null,null,false,320,45);
- iButR = new _ct751(null,null,false,320,45);
- iButC._xe768(40,50);
- iButR._xe768(40,100);
- iFrameS = new _be548();
- iFrameS.addChild(iFrame);
- addChildAt(iFrameS,0);
- _kd700(_vx23._un44);
- iFrameS._vg471 = iMode == TShapeType.CIRCLE ? iTopY : iBottomY;
- if(!_vx23._xp514)
- {
- addChild(iButC);
- }
- if(!_vx23._bu14)
- {
- addChild(iButR);
- }
- }
-
- override public function _fl204(param1:MouseEvent) : void
- {
- if(param1.target == iButC._en365)
- {
- _kd700(TShapeType.CIRCLE);
- }
- else if(param1.target == iButR._en365)
- {
- _kd700(TShapeType.POLY);
- }
- }
-
- public function _kd700(param1:TShapeType) : void
- {
- iMode = param1;
- iState = stMove;
- _cg33._ss555[1].prShapeType = iMode == TShapeType.CIRCLE ? 0 : 1;
- _cg33._gk638();
- }
-
- override public function onEnterFrame(param1:Event) : void
- {
- super.onEnterFrame(param1);
- switch(iState)
- {
- case stMove:
- if(iMode == TShapeType.CIRCLE)
- {
- iFrameS._vg471 -= 5;
- if(iFrameS._vg471 <= iTopY)
- {
- iFrameS._vg471 = iTopY;
- iState = stNone;
- }
- }
- else
- {
- iFrameS._vg471 += 5;
- if(iFrameS._vg471 >= iBottomY)
- {
- iFrameS._vg471 = iBottomY;
- iState = stNone;
- }
- }
- }
- }
-
- public function get _un44() : TShapeType
- {
- return iMode;
- }
- }
- }
-
-